package com.sample.services;

import android.app.Activity;
import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.widget.Toast;

public class ServiceTest extends Service {
    /** Called when the activity is first created. */
    LocalBinder binder;
	public void onCreate() 
    {
        super.onCreate();
        binder = new LocalBinder();
    }
    public void onStart(Intent intent, int startID)
    {
    	Toast.makeText(this, "Hi", Toast.LENGTH_LONG).show();
    }
    public void onDestroy()
    {
    	
    }

	@Override
	public IBinder onBind(Intent intent) 
	{
		return binder;
	}
	public class LocalBinder extends Binder
	{
		ServiceTest getService()
		{
			return ServiceTest.this;
		}
	}
}